if BUILDABLE_SJ3DICT

EXTRA_DIST = visual.dic

all: sj3main.dic

sj3main.dic: visual.dic
	$(top_builddir)/src/sj3mkdic/sj3mkdic ./visual.dic sj3main.dic > Moutput

install:: sj3main.dic
	($(mkdir_p) $(DESTDIR)$(SJ3DICTDIR); \
	 $(INSTALL_DATA) sj3main.dic $(DESTDIR)$(SJ3DICTDIR); \
	 $(mkdir_p) $(DESTDIR)$(SJ3DICTDIR)/user; \
	 chown $(SJ3OWNER) $(DESTDIR)$(SJ3DICTDIR)/user; \
	 chgrp $(SJ3GROUP) $(DESTDIR)$(SJ3DICTDIR)/user;)

CLEANFILES = sj3main.dic Moutput

endif
